package com.groupThree.bean;

import java.sql.Timestamp;

public class User {
    private int u_id;
    private String u_name;
    private String u_phone;
    private String u_idcard;
    private String u_password;
    private Timestamp u_registertime;
    private Timestamp u_logintime;

    public User(String u_name, String u_phone, Timestamp u_registertime) {
        this.u_name = u_name;
        this.u_phone = u_phone;
        this.u_registertime = u_registertime;
    }

    public User(String u_name, String u_phone, String u_password) {
        this.u_name = u_name;
        this.u_phone = u_phone;
        this.u_password = u_password;
    }

    public boolean isUser() {
        return User;
    }

    public void setUser(boolean user) {
        User = user;
    }

    private boolean User;



    public User() {
    }

    public User(int u_id, String u_name, String u_phone, String u_idcard, String u_password, Timestamp u_registertime, Timestamp u_logintime) {
        this.u_id = u_id;
        this.u_name = u_name;
        this.u_phone = u_phone;
        this.u_idcard = u_idcard;
        this.u_password = u_password;
        this.u_registertime = u_registertime;
        this.u_logintime = u_logintime;
    }

    public User(String u_name, String u_phone, String u_idcard, String u_password, Timestamp u_registertime) {
        this.u_name = u_name;
        this.u_phone = u_phone;
        this.u_idcard = u_idcard;
        this.u_password = u_password;
        this.u_registertime = u_registertime;
    }

    public User(String u_name, String u_phone, String u_idcard, String u_password) {
        this.u_name = u_name;
        this.u_phone = u_phone;
        this.u_idcard = u_idcard;
        this.u_password = u_password;
    }

    public User(int u_id, String u_name, String u_phone, String u_password, Timestamp u_registertime, Timestamp u_logintime) {
    }

    public int getU_id() {
        return u_id;
    }

    public void setU_id(int u_id) {
        this.u_id = u_id;
    }

    public String getU_name() {
        return u_name;
    }

    public void setU_name(String u_name) {
        this.u_name = u_name;
    }

    public String getU_phone() {
        return u_phone;
    }

    public void setU_phone(String u_phone) {
        this.u_phone = u_phone;
    }

    public String getU_idcard() {
        return u_idcard;
    }

    public void setU_idcard(String u_idcard) {
        this.u_idcard = u_idcard;
    }

    public String getU_password() {
        return u_password;
    }

    public void setU_password(String u_password) {
        this.u_password = u_password;
    }

    public Timestamp getU_registertime() {
        return u_registertime;
    }

    public void setU_registertime(Timestamp u_registertime) {
        this.u_registertime = u_registertime;
    }

    public Timestamp getU_logintime() {
        return u_logintime;
    }

    public void setU_logintime(Timestamp u_logintime) {
        this.u_logintime = u_logintime;
    }

    @Override
    public String toString() {
        return "User{" +
                "u_id=" + u_id +
                ", u_name='" + u_name + '\'' +
                ", u_phone='" + u_phone + '\'' +
                ", u_idcard='" + u_idcard + '\'' +
                ", u_password='" + u_password + '\'' +
                ", u_registertime=" + u_registertime +
                ", u_logintime=" + u_logintime +
                '}';
    }
}

